package cn.xs.core.service.impl;

import java.util.List;


import cn.xs.core.dao.BaseDao;
import cn.xs.core.service.BaseService;

public class BaseServiceImpl<T> implements BaseService<T> {

	private BaseDao<T> baseDao;
	public void setBaseDao(BaseDao<T> baseDao) {
		this.baseDao = baseDao;
	}
	
	
	public void delete(String id) {
		baseDao.delete(id);
	}

	public T find(String id) {
		return baseDao.find(id);
	}

	public List<T> findAll() {
		return baseDao.findAll();
	}

	public void save(T entity) {
		baseDao.save(entity);
	}

	public void update(T entity) {
		baseDao.update(entity);
	}

}
